﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using PBOffice.Models;
using PBOffice.BLL;

public partial class CommonInfoManager_StaffInfo : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        int id =Convert.ToInt32(Request.QueryString["id"]);
       PBOffice.Models.Staff user = new StaffManager().GetStaffByStfId(id);
        this.lbDept.Text = user.Department.DeptName;
        this.lbMobileTel.Text = user.MobilePhone;
        this.lbPosition.Text = user.Position.PosName;
        if (user.Gender)
        {
            this.lbSex.Text = "男";
        }
        else
        {
            this.lbSex.Text = "男";
        }
        this.lbStfCode.Text = user.StfCode;
        this.lbStfName.Text = user.StfName;
        this.lbTelePhone.Text = user.TelePhone;
       
       

    }
    protected void btnReturn_Click(object sender, EventArgs e)
    {
        Response.Redirect("StfStructure.aspx");
    }
}